package com.turkcell.dv.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "P_PROCESS_PRIVILEGE")
public class ProcessPrivilegeDOM implements java.io.Serializable {

	private static final long serialVersionUID = 8957194939885183099L;
	private Long id;
	private Long privilegeId;
	private Long processId;

	public ProcessPrivilegeDOM() {
	}

	@Id
	@Column(name = "ID", unique = true, nullable = false, precision = 5, scale = 0)
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	@Column(name = "ROLE_ID", nullable = false)
	public Long getPrivilegeId() {
		return this.privilegeId;
	}

	public void setPrivilegeId(Long privilegeId) {
		this.privilegeId = privilegeId;
	}

	@Column(name = "PROCESS_ID", nullable = false)
	public Long getProcessId() {
		return this.processId;
	}

	public void setProcessId(Long processId) {
		this.processId = processId;
	}

	@Override
	public String toString() {
		return "id=" + id + ", privilegeId=" + privilegeId + ", processId=" + processId;
	}

}